package cn.wolfcode.rbac.enums;

import lombok.Data;

/**
 * @author Lu.F
 * @version 1.0
 * @Description TODO
 * @date 2022/5/14 17:12
 */
public enum BizExceptionEnum {

    /**
     * 对象类
     */
    OBJECT_IS_NULL(100,"对象为空"),
    OBJECT_NOT_EXISTS(101,"对象不存在"),
    OBJECT_IS_EXISTS(102,"对象已经存在"),

    /**
     * 请求体类
     */
    REQUEST_BODY_IS_NULL(201,"请求体为空");

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    BizExceptionEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
